package com.guofen.dao;

import com.guofen.pojo.OrderList;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderListMapper {
    List<OrderList> selectAll();

    OrderList selectByPrimaryKey(Integer id);

    OrderList selectByFoodNameAndOrderId(@Param("foodName")String foodName,
                                         @Param("orderId")Integer orderId);

    List<OrderList> selectByOrderId(Integer orderId);

    int deleteByPrimaryKey(Integer id);

    int insertSelective(OrderList orderList);

    int updateByPrimaryKeySelective(OrderList orderList);

    int deleteByOrderId(Integer orderId);
}
